import {constantRoutes} from '@/router' // 从router下导入静态路由

export default {
  namespaced: true,
  state:{
    // 用于生成左侧菜单
    routes:constantRoutes
  },
  mutations:{
    setRoutes(state, otherRoutes){
      state.routes= [...constantRoutes, ...otherRoutes]
    }
  },
  actions:{},
  getters:{}
}
